import Vue from "vue";
import VueRouter from "vue-router";
import login from "../views/login.vue";
import search from "../views/search.vue";
import search1 from "../views/search1.vue";
import list from "../views/list.vue";
import reservation from "../views/reservation.vue";
import info from "../views/info.vue";
import report from "../views/report.vue";
import investigate from "../views/investigate.vue";
import complaint from "../views/complaint.vue";
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "login",
    component: login,
  },
  {
    path: "/search",
    name: "search",
    component: search,
  },
  {
    path: "/search1",
    name: "search1",
    component: search1,
  },
  {
    path: "/list",
    name: "list",
    component: list,
  },
  {
    path: "/reservation",
    name: "reservation",
    component: reservation,
  },
  {
    path: "/info",
    name: "info",
    component: info,
  },
  {
    path: "/report",
    name: "report",
    component: report,
  },
  {
    path: "/investigate",
    name: "investigate",
    component: investigate,
  },
  {
    path: "/complaint",
    name: "complaint",
    component: complaint,
  },
];

const router = new VueRouter({
  routes,
});

export default router;
